package com.nikmesoft.nmsharekit;

import android.app.Activity;
import android.content.Context;

import com.nikmesoft.nmsharekit.helpers.NMSKFacebookHelper;
import com.nikmesoft.nmsharekit.helpers.NMSKTwitterHelper;
import com.nikmesoft.nmsharekit.objects.NMShareMessage;

public class NMShareKit {
	public static NMShareKit instance;
	private Context context;
	private Activity activity;

	public NMShareKit(Context context, Activity activity) {
		this.context = context;
		this.activity = activity;

	}

	// share instance
	public static NMShareKit sharedInstance(Context context, Activity activity) {
		if (instance == null) {
			instance = new NMShareKit(context, activity);
		}
		return instance;
	}

	// share to FB with shareMessage
	public void shareFB(NMShareMessage message) {
		NMSKFacebookHelper.sharedInstance(context, activity).share(message);
	}

	// share to FB with shareMessage
	public void shareTwitter(NMShareMessage message) {
		NMSKTwitterHelper.sharedInstance(context, activity).share(message);
	}
}
